<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'click.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
    function getClickPosition(){
	  var strClickPosMessage = "\n当前鼠标单击的位置坐标：\n";
	                                                //将在警告框中按格式输出的鼠标点击位置的字符串
	  strClickPosMessage += "横坐标x：" + event.clientX + "\n";
	  strClickPosMessage += "纵坐标y：" + event.clientY + "\n";
	  alert(strClickPosMessage);
	}//getClickPosition()
  </script>
  </head>
  
  <body onclick="javascript:getClickPosition();">
    This is my JSP page. <br>
  </body>
</html>
